#/*************************************************************************
#    > File Name: calc/calc_setting.py
#    > Author: Yan Wang
#    > Mail: wangyan@imnu.edu.cn
#    > Created Time: 2022年07月21日 星期四 14时31分39秒
# ************************************************************************/
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
import paramiko 
sys.path.append('../Lib')
from Load_Lib import * 
from event_path import * 

# 设置print的显示规则
np.set_printoptions(threshold=np.inf)
pd.set_option('display.max_columns',None)
pd.set_option('display.max_rows',None)





# 设置基本参数

process={}
process["name"]="THDM_CH_4b0j"
process["kind"]="mh_mch"
#process["kind"]="sba_tb"
process["pt"]=10
process["mode"]="fixed_width"
process["cluster"]="yancy"
#process["cluster"]="college"
#process["event_method"]= "pbs"
#process["event_method"]= "slurm"
process["event_method"]= "seperate"
#process["event_method"]= "scan"





# 设置基本的工作路径
param_dir=Work_Init(process)

# 设置parton level 截面计算参数
process["theoretical_para_file_name"]=process_input_folder+"/data/data_grid_{fname}.tsv".format(fname=param_kind)
param_df=Load_THDM_Param(theoretical_para_file_name)
param_length=len(param_df)

# 设置MG
param_MG=Param_MG(process)
param_MG.Generate_MG_Param(process)


# 生成MG，ARCH，BASDA的控制文件
Param_MG_Control(param_dir, process)
param_ARCH=Param_ARCH_Control(param_dir,process,param_MG)
ARCH_dir=Param_ARCH_Dir(param_dir,process,param_MG)
param_BASDA=Param_BASDA_Control(param_dir,procss,param_ARCH)
